Fuzzy search feature (replaces full text search as default action when exact title...
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?
2 # DO NOT EDIT THIS FILE!
3 # To customize your installation, edit "LocalSettings.php".
4 # Note that since all these string interpolations are expanded
5 # before LocalSettings is included, if you localize something
6 # like $wgScriptPath, you must also localize everything that
7 # depends on it.
8
9 $wgVersion = "1.2.0beta";
10
11 $wgSitename = "Wikipedia";
12 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
13
14 $wgServer = "http://" . getenv( "SERVER_NAME" );
15 $wgScriptPath = "/wiki";
16 $wgScript = "{$wgScriptPath}/wiki.phtml";
17 $wgRedirectScript = "{$wgScriptPath}/redirect.phtml";
18 $wgStyleSheetPath = "{$wgScriptPath}/style";
19 $wgStyleSheetDirectory = "{$IP}/style";
20 $wgArticlePath = "{$wgScript}?title=$1";
21 $wgUploadPath = "{$wgScriptPath}/upload";
22 $wgUploadDirectory = "{$IP}/upload";
23 $wgLogo = "{$wgUploadPath}/wiki.png";
24 $wgMathPath = "{$wgUploadPath}/math";
25 $wgMathDirectory = "{$wgUploadDirectory}/math";
26 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
27 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
28 #$wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>";
29 $wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>\r\nReply-To: webmaster@www.wikipedia.org";
30
31 # MySQL settings
32 #
33 $wgDBserver = "localhost";
34 $wgDBname = "wikidb";
35 $wgDBconnection = "";
36 $wgDBuser = "wikiuser";
37 $wgDBpassword = "userpass";
38 $wgDBsqluser = "sqluser";
39 $wgDBsqlpassword = "sqlpass";
40 $wgDBminWordLen = 4;
41 $wgDBtransactions = false; # Set to true if using InnoDB tables
42 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
43
44 # Database load balancer
45 $wgDBservers = false; # e.g. array("larousse", "pliny")
46 $wgDBloads = false; # e.g. array(0.6, 0.4);
47
48
49 # memcached settings
50 # See docs/memcached.doc
51 #
52 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
53 $wgUseMemCached = false;
54 $wgMemCachedServers = array( "127.0.0.1:11000" );
55 $wgMemCachedDebug = false;
56 $wgSessionsInMemcached = false;
57 $wgLinkCacheMemcached = false; # Not fully tested
58
59 # Language settings
60 #
61 $wgLanguageCode = "en";
62 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
63 $wgInputEncoding = "ISO-8859-1";
64 $wgOutputEncoding = "ISO-8859-1";
65 $wgEditEncoding = "";
66 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
67 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
68 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
69 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
70 $wgAmericanDates = false; # Enable for English module to print dates
71 # as eg 'May 12' instead of '12 May'
72 $wgLocalInterwiki = "w";
73 $wgShowIPinHeader = true; # For non-logged in users
74 $wgMaxNameChars = 32; # Maximum number of bytes in username
75
76 # Translation using MediaWiki: namespace
77 # Not recommended unless memcached is installed
78 $wgUseDatabaseMessages = false;
79 $wgMsgCacheExpiry = 86400;
80
81 $wgExtraSubtitle = "";
82 $wgSiteSupportPage = "";
83
84 # Miscellaneous configuration settings
85 #
86 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
87
88 # The debug log file should be not be publically accessible if it is
89 # used, as it may contain private data.
90 $wgDebugLogFile = "";
91
92 $wgDebugComments = false;
93 $wgReadOnly = false;
94 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
95 $wgLogQueries = false;
96 $wgUseCategoryMagic = false;
97 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
98 $wgCompressedPersistentLC = true; # use gzcompressed blobs
99
100 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
101
102 # wgHitcounterUpdateFreq sets how often page counters should be
103 # updated, higher values are easier on the database. A value of 1
104 # causes the counters to be updated on every hit, any higher value n
105 # cause them to update *on average* every n hits. Should be set to
106 # either 1 or something largish, eg 1000, for maximum efficiency.
107
108 $wgHitcounterUpdateFreq = 1;
109
110 # User rights
111 $wgWhitelistEdit = false;
112 $wgWhitelistRead = false;
113 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
114 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
115 $wgIPBlockExpiration = 86400; # IP blocks expire after this many seconds, 0=infinite
116 $wgUserBlockExpiration = 0; # As above, but for logged-in users
117
118 # User agent/range blocking
119 # Blocks all users using a particular user agent, possibly restricted to a
120 # set of IP ranges. Note: you can't block all user agents by leaving
121 # $wgBadUserAgents blank. That would block nothing.
122 $wgBadRanges = false; # e.g. array(array("1.2.3.0", "1.2.3.255"))
123 $wgBadUserAgents = false; # e.g. array("OfflineExplorer/1.0")
124 $wgRangeBlockUser = 0; # The block is attributed to this user ID
125 $wgRangeBlockReason = ""; # This reason is given (should be in wfMsg, obviously)
126
127 # Client-side caching:
128 $wgCachePages = true; # Allow client-side caching of pages
129
130 # Set this to current time to invalidate all prior cached pages.
131 # Affects both client- and server-side caching.
132 $wgCacheEpoch = "20030516000000";
133
134 # Server-side caching:
135 # This will cache static pages for non-logged-in users
136 # to reduce database traffic on public sites.
137 # Must set $wgShowIPinHeader = false
138 $wgUseFileCache = false;
139 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
140
141 $wgCookieExpiration = 2592000;
142
143 # Squid-related settings
144 #
145 # Enable/disable Squid
146 $wgUseSquid = false;
147 # If you run Squid3 with ESI support, enable this (default:false):
148 $wgUseESI = false;
149 # Internal server name as known to Squid, if different
150 # $wgInternalServer = 'http://yourinternal.tld:8000';
151 $wgInternalServer = $wgServer;
152 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
153 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
154 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
155 $wgSquidMaxage = 18000;
156 # A list of proxy servers (ips if possible) to purge on changes
157 # don't specify ports here (80 is default)
158 # $wgSquidServers = array('127.0.0.1');
159
160 # Set to set an explicit domain on the login cookies
161 # eg, "justthis.domain.org" or ".any.subdomain.net"
162 $wgCookieDomain = "";
163 $wgCookiePath = "/";
164 $wgDisableCookieCheck = false;
165
166 $wgAllowExternalImages = true;
167 $wgMiserMode = false; # Disable database-intensive features
168 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
169 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
170 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
171
172 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
173 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
174 # convert (ImageMagick) installed and available in the PATH.
175 # Please see math/README for more information.
176 $wgUseTeX = false;
177 $wgTexvc = "./math/texvc"; # Location of the texvc binary
178
179 # Profiling / debugging
180 $wgProfiling = false; # Enable for more detailed by-function times in debug log
181 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
182 $wgProfileOnly = false; # Don't put non-profiling info into log file
183 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
184 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
185 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
186 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
187
188 $wgDisableCounters = false;
189 $wgDisableTextSearch = false;
190 $wgDisableFuzzySearch = false;
191 $wgDisableSearchUpdate = false; # If you've disabled search semi-permanently, this also disables updates to the table. If you ever re-enable, be sure to rebuild the search table.
192 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
193 $wgRemoteUploads = false; # Set to true to enable the upload _link_ while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work.
194 $wgDisableAnonTalk = false;
195
196 # We can serve pages compressed in order to save bandwidth,
197 # but this will increase CPU usage.
198 # Requires zlib support enabled in PHP.
199 $wgUseGzip = function_exists( "gzencode" );
200
201 # We can also compress text in the old revisions table. If this is set on,
202 # old revisions will be compressed on page save if zlib support is available.
203 # Any compressed revisions will be decompressed on load regardless of this
204 # setting *but will not be readable at all* if zlib support is not available.
205 $wgCompressRevisions = false;
206
207 # This is the list of preferred extensions for uploading files. Uploading
208 # files with extensions not in this list will trigger a warning.
209
210 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
211
212 # Files with these extensions will never be allowed as uploads.
213 $wgFileBlacklist = array(
214 # HTML may contain cookie-stealing JavaScript and web bugs
215 "html", "htm",
216 # PHP scripts may execute arbitrary code on the server
217 "php", "phtml", "php3", "php4", "phps",
218 # Other types that may be interpreted by some servers
219 "shtml", "jhtml", "pl", "py",
220 # May contain harmful executables for Windows victims
221 "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
222
223 # This is a flag to determine whether or not to check file extensions on
224 # upload.
225 $wgCheckFileExtensions = true;
226
227 # If this is turned off, users may override the warning for files not
228 # covered by $wgFileExtensions.
229 $wgStrictFileExtensions = true;
230
231 $wgPasswordSalt = true; # For compatibility with old installations set to false
232
233 # Which namespaces should support subpages?
234 # See Language.php for a list of namespaces.
235 #
236 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
237 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1 );
238
239 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
240 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );
241
242 # If set, a bold ugly notice will show up at the top of every page.
243 $wgSiteNotice = "";
244
245 # Whether to allow anonymous users to set changes to 'minor'
246
247 $wgAllowAnonymousMinor = false;
248 ?>